cmake_minimum_required(VERSION 3.10 FATAL_ERROR)

project(example VERSION 2.0.1 LANGUAGES CXX)

configure_file(
  version.h.in
  generated/version.h
  @ONLY
)

add_executable(${PROJECT_NAME} example.cpp)
target_include_directories(${PROJECT_NAME}
  PRIVATE
      ${CMAKE_CURRENT_BINARY_DIR}/generated
)
